
import { storeToRefs } from 'pinia';
import { useUserInfo } from '/@/stores/userInfo';

// 定义变量内容
const stores = useUserInfo();
const { userInfos } = storeToRefs(stores);

// 获取 pinia 中的用户权限
export const getAuthBtnList = ((name:string) => {
	return userInfos.value.authBtnList.some((v: string) => v === name);
});

